@props(['messages'])

@if ($messages)
    <div class="label">
        <span class="label-text-alt">
            <ul>
                @foreach ((array) $messages as $message)
                    <li>{{ $message }}</li>
                @endforeach
            </ul>
        </span>
    </div>
@endif
